﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using EzDesk.EventAggregation;

namespace EzDesk.DesktopClient.Event
{
    public class LoginFailedEvent : CompositeEvent<LoginFailedArgs>
    {
        private static LoginFailedEvent _instance;
        public static LoginFailedEvent Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = EventAggregator<LoginFailedEvent>.GetEvent();
                }
                return _instance;
            }
        }
    }


    public class LoginFailedArgs
    {
        public string Information;
        public string Type;
    }

    public class LoginedEvent : CompositeEvent<LoginArgs>
    {
        private static LoginedEvent _instance;
        public static LoginedEvent Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = EventAggregator<LoginedEvent>.GetEvent();
                }
                return _instance;
            }
        }
    }

    public class LoginEvent : CompositeEvent<LoginArgs>
    {
        private static LoginEvent _instance;
        public static LoginEvent Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = EventAggregator<LoginEvent>.GetEvent();
                }
                return _instance;
            }
        }
    }
}
